package com.flin.icesilkworm.examination.extfunc;

import java.util.function.Consumer;

import com.flin.icesilkworm.framework.utils.Md5Utils;

public interface IExtFunction {

	default void md5Password(String password,Consumer<String> setterPwd){
		if(password != null && password.trim().length() < 20){
			setterPwd.accept(Md5Utils.encrypByMd5(password.trim()).toLowerCase());
		} else {
			setterPwd.accept(null);
		}
	}
}
